package clonetest;

public class CloneTest implements Cloneable {
	
	
	private int hp = 30;
	private int sp = 30;
	
	@Override
	protected CloneTest clone() throws CloneNotSupportedException {
		CloneTest ct = new CloneTest();
		ct.hp = this.hp;
		ct.sp = this.sp;
		return ct;
	}
	
//	protected CloneTest clone() {
//		return null;
//	}
	
	public static void main(String[] args) throws CloneNotSupportedException {
		Object ct = new CloneTest().clone();
	}
}
